//package com.preparation.mapper;
//
//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
//import com.preparation.domain.Post;
//import com.preparation.domain.PostLike;
//import org.apache.ibatis.annotations.Delete;
//import org.apache.ibatis.annotations.Mapper;
//import org.apache.ibatis.annotations.Select;
//
//import java.util.List;
//
//@Mapper
//public interface PostLikeMapper extends BaseMapper<PostLike> {
//
//    //根据用户id 帖子id删除点赞信息
//    @Delete("DELETE FROM tbl_post_like WHERE user_id=#{userId} AND post_id=#{postId}")
//    int deleteByUidPid(PostLike postLike);
//
//    //根据用户id和帖子id查询是否存在点赞信息
//    @Select("select count(*) from tbl_post_like where user_id=#{userId} and post_id=#{postId}")
//    int getByUidPid(PostLike postLike);
//}
